    <script src="__ROOT__/JS/jquery-1.7.2.js"></script>	
	<div class="pageContent">	
			<form method="post" action="__URL__/do_ceremonyAdd/navTabId/advert/callbackType/closeCurrent" enctype="multipart/form-data" class="pageForm required-validate"  onsubmit="return iframeCallback(this,dialogAjaxDone);">
				<div class="pageFormContent" layoutH="55">
					<input type="hidden" name="type" value="1">
					<div class="unit">
						<label>文章标题：</label>
                        <input type="text" name="Title" id="Title" class="required"/>
						<span class="error" id="Title01" style="display:none">大于30个字</span>
					</div>
					<div class="unit">
						<label>标题样式：</label>
                        <input type="checkbox" name="style" value="1"/>红色标题
                        <input type="checkbox" name="style" value="2"/>加框标题
					</div>
					<div class="unit">
						<label>副标题：</label>
						<input type="text" name="SubjTitle" id="SubjTitle"/>
                    </div>
                    <div class="unit">
						<label>作者：</label>
						<input type="text" name="Author"  class="required" value="{$Author}" id="Author"/>
                    </div>
                    <div class="unit">
						<label>关键字：</label>
						<input type="text" name="KeyWords"  class="required" id="KeyWords"/>
                    </div>
                    <div class="unit">
						<label>来源：</label>
						<input type="text" name="source"  />
                    </div>
                    <div class="unit">
						<label>外部链接：</label>
						<input type="text" name="link"  />
                    </div>
                     <div class="unit">
						<label>选择栏目：</label>
                        <select name="program">
                            <option value="0">大赛介绍</option>
                            <option value="1">赛事公告</option>
                            <option value="2">动态快报</option>
                            <option value="3">赛事设置</option>
                            <option value="4">日程安排</option>
                            <option value="5">奖项设置</option>
                            <option value="6">联系我们</option>
                            <option value="7">精彩活动安排</option>
							<option value="8">大赛官方社区</option>
							<option value="9">网络商务菁英训练营</option>
							<option value="10">网商人才能力发展项目</option>
							<option value="11">大赛专家顾问</option>
							<option value="12">专家寄语</option>
							<option value="13">常见问题解答</option>
							<option value="14">媒体关注</option>
							<option value="15">启动仪式</option>
                        </select>
					</div>
                    <div class="unit">
						<label>文章内容：</label>
						<textarea class="editor" name="content" rows="8" cols="50" ></textarea>
                    </div>
					<dl>
						<dt></dt>
						<dd>
							<input type="submit" name="submit" value="添加" id="sub">
                            <input type="reset" name="reset" value="取消"/>
						</dd>
					</dl>
				</div>
			</form>
		</div>
		<script>
			$("#Title").blur(function(){
				if($.trim(this.value).length>30){	
					$("#Title01").css("display","block");
					s=false;			
				}else{
					$("#Title01").css("display","none");
					s=true;
				}
				
			});	
			$("#Author").keyup(function(){
				if($.trim(this.value).length>10){
					alert("输入字数大于30个，请重新输入！");
				}
			});	
			$("#KeyWords").blur(function(){
				var dong=$(this).val();
				arr=dong.split(',');
				if(arr.length-1>10){
					alert("最多可以输入10个关键字");
				}
			});
			$("#sub").click(function(){
				return s;
			});
		</script>
